import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Login from '@/components/Login'
import userMgr from '@/components/paas/user/userMgr'
import roleList from '@/components/paas/role/roleListMgr'
import userGroup from '@/components/paas/usergroup/usergroupList'
import parameter from '@/components/paas/system/parameter/parameterListMgr'
import person from '@/components/person'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      children: [
        {
          path: 'person',
          name: 'person',
          component: person
        },
        {
          path: 'userMgr',
          name: 'userMgr',
          component: userMgr
        },
        {
          path: 'roleList',
          name: 'roleList',
          component: roleList
        },
        {
          path: 'userGroup',
          name: 'userGroup',
          component: userGroup
        },
        {
          path: 'parameter',
          name: 'parameter',
          component: parameter
        }

      ]
    },
    {
      path: '/login',
      name: 'Login',
      components: {
        blank: Login
      }
    }
  ]
})
